/*
 * @Author: liangzhuo liangzhuo@chzu.com
 * @Date: 2022-10-21 20:48:45
 * @LastEditors: liangzhuo liangzhuo@chzu.com
 * @LastEditTime: 2022-10-22 11:42:55
 * @FilePath: \hongxinUi\src\api\exam\examSchoose.js
 * @Description: 单选题接口
 */
import request from '@/utils/request'

// 分页查询所有单选题（可模糊查询）
export function getExamSchoose(data) {
  return request({
      url: '/system/schoose/list',
      method: 'get',
      params: data
  })
}

// 添加单选题
export function addExamSchoose(data) {
  return request({
      url: '/system/schoose',
      method: 'post',
      data: data
  })
}

// 修改单选题
export function updateExamSchoose(data) {
  return request({
      url: '/system/schoose',
      method: 'put',
      data: data
  })
}

// 根据id批量删除单选题
export function delExamSchoose(ids) {
  return request({
      url: `/system/schoose/${ids}`,
      method: 'delete'
  })
}

// 导入单选题
export function importExamSchoose(data) {
  return request({
      url: '/system/schoose/importData',
      method: 'post',
      data: data
  })
}

// 导出单选题
export function exportSchoose(data) {
  return request({
      url: '/system/schoose/export',
      method: 'post',
      data: data
  })
}